package com.jokerpan.project.mapper;

import com.jokerpan.project.entity.Blogs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author jokerpan
 */
@Mapper
public interface BlogsMapper {

    List<Blogs> queryList(Blogs blogs);

    List<Blogs> queryByUserId(Blogs blogs);

    Blogs queryById(Integer id);

    Blogs queryMaxId();

    int add(Blogs blogs);

    int update(Blogs blogs);

    int deleteById(Integer id);

}
